<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo: Référence du fichier TesteurFilePieces.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_testeur_file_pieces_8cpp.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier TesteurFilePieces.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;gtest/gtest.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="_file_pieces_8h_source.html">FilePieces.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de TesteurFilePieces.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_file_pieces_8cpp__incl.png" border="0" usemap="#_testeur_file_pieces_8cpp" alt=""/></div>
<map name="_testeur_file_pieces_8cpp" id="_testeur_file_pieces_8cpp">
</map>
</div>
</div>
<p><a href="_testeur_file_pieces_8cpp_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr class="memitem:a7b25e2f3d957f5162d72037ea6fa4300"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_file_pieces_8cpp.html#a7b25e2f3d957f5162d72037ea6fa4300">TEST</a> (<a class="el" href="class_t_p1_1_1_file_pieces.html">FilePieces</a>, ConstructeurParDefaut_CreationFileVide)</td></tr>
<tr class="memdesc:a7b25e2f3d957f5162d72037ea6fa4300"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test: FilePieces(), constructeur.  <a href="#a7b25e2f3d957f5162d72037ea6fa4300">Plus de détails...</a><br/></td></tr>
<tr class="separator:a7b25e2f3d957f5162d72037ea6fa4300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af52d5bd12b0c7ff420e8be4032d2f561"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_file_pieces_8cpp.html#af52d5bd12b0c7ff420e8be4032d2f561">TEST</a> (<a class="el" href="class_t_p1_1_1_file_pieces.html">FilePieces</a>, ConstructeurCopie_CreationValide)</td></tr>
<tr class="separator:af52d5bd12b0c7ff420e8be4032d2f561"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc3c7cdc72f413d8fa5f1398181354ae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_file_pieces_8cpp.html#acc3c7cdc72f413d8fa5f1398181354ae">TEST</a> (<a class="el" href="class_t_p1_1_1_file_pieces.html">FilePieces</a>, OperateurAssignation_CopieValide)</td></tr>
<tr class="memdesc:acc3c7cdc72f413d8fa5f1398181354ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test: Operateur assignation =.  <a href="#acc3c7cdc72f413d8fa5f1398181354ae">Plus de détails...</a><br/></td></tr>
<tr class="separator:acc3c7cdc72f413d8fa5f1398181354ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ad9d2442769de75578a9c2181f6cfe5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_file_pieces_8cpp.html#a1ad9d2442769de75578a9c2181f6cfe5">TEST</a> (<a class="el" href="class_t_p1_1_1_file_pieces.html">FilePieces</a>, defilePiece_ErreurSiVide)</td></tr>
<tr class="memdesc:a1ad9d2442769de75578a9c2181f6cfe5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test: defilePiece()  <a href="#a1ad9d2442769de75578a9c2181f6cfe5">Plus de détails...</a><br/></td></tr>
<tr class="separator:a1ad9d2442769de75578a9c2181f6cfe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Documentation des fonctions</h2>
<a class="anchor" id="a7b25e2f3d957f5162d72037ea6fa4300"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_file_pieces.html">FilePieces</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ConstructeurParDefaut_CreationFileVide&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test: FilePieces(), constructeur. </p>
<p>Cas valide: 1. création d'une file vide</p>
<ol type="1">
<li>Constructeur copie, création d'une file identique à la file originale. Copie profonde. (test aussi enfilePiece et estVideFile)</li>
</ol>
<p>Cas invalide: </p>

<p>Définition à la ligne <a class="el" href="_testeur_file_pieces_8cpp_source.html#l00026">26</a> du fichier <a class="el" href="_testeur_file_pieces_8cpp_source.html">TesteurFilePieces.cpp</a>.</p>

<p>Références <a class="el" href="_file_pieces_8cpp_source.html#l00087">TP1::FilePieces::estVideFile()</a>.</p>
<div class="fragment"><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;{</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="class_t_p1_1_1_file_pieces.html">FilePieces</a> fp;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    ASSERT_TRUE(fp.<a class="code" href="class_t_p1_1_1_file_pieces.html#a28ec1fa0edf8ef1c110a9678126615af">estVideFile</a>());</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html">TP1::FilePieces</a></div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8h_source.html#l00021">FilePieces.h:21</a></div></div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html_a28ec1fa0edf8ef1c110a9678126615af"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html#a28ec1fa0edf8ef1c110a9678126615af">TP1::FilePieces::estVideFile</a></div><div class="ttdeci">bool estVideFile() const </div><div class="ttdoc">vérifie si la file est vide </div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8cpp_source.html#l00087">FilePieces.cpp:87</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_file_pieces_8cpp_a7b25e2f3d957f5162d72037ea6fa4300_cgraph.png" border="0" usemap="#_testeur_file_pieces_8cpp_a7b25e2f3d957f5162d72037ea6fa4300_cgraph" alt=""/></div>
<map name="_testeur_file_pieces_8cpp_a7b25e2f3d957f5162d72037ea6fa4300_cgraph" id="_testeur_file_pieces_8cpp_a7b25e2f3d957f5162d72037ea6fa4300_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af52d5bd12b0c7ff420e8be4032d2f561"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_file_pieces.html">FilePieces</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ConstructeurCopie_CreationValide&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_file_pieces_8cpp_source.html#l00031">31</a> du fichier <a class="el" href="_testeur_file_pieces_8cpp_source.html">TesteurFilePieces.cpp</a>.</p>

<p>Références <a class="el" href="_file_pieces_8cpp_source.html#l00065">TP1::FilePieces::defilePiece()</a>, <a class="el" href="_file_pieces_8cpp_source.html#l00054">TP1::FilePieces::enfilePiece()</a>, <a class="el" href="_file_pieces_8cpp_source.html#l00087">TP1::FilePieces::estVideFile()</a>, et <a class="el" href="_file_pieces_8cpp_source.html#l00024">TP1::FilePieces::~FilePieces()</a>.</p>
<div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="class_t_p1_1_1_file_pieces.html">FilePieces</a> fp;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    fp.<a class="code" href="class_t_p1_1_1_file_pieces.html#aa8feb7b1ce9d120e62bab1325b8d1e04">enfilePiece</a>(<span class="stringliteral">&quot;pc1&quot;</span>,1);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    fp.<a class="code" href="class_t_p1_1_1_file_pieces.html#aa8feb7b1ce9d120e62bab1325b8d1e04">enfilePiece</a>(<span class="stringliteral">&quot;pc2&quot;</span>,2);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <a class="code" href="class_t_p1_1_1_file_pieces.html">FilePieces</a> fp2(fp);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    fp.<a class="code" href="class_t_p1_1_1_file_pieces.html#a349de724ce0225414c7048bf468b5cb3">~FilePieces</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">//suite à la destruction de fp, fp2 ne doit pas être vide (copie profonde)</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    ASSERT_FALSE(fp2.estVideFile());</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">//et les pieces défilés doivent être pc2 et pc1</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">string</span> st;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">int</span> in;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    fp2.defilePiece(st,in);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="comment">//la premiere piece retirée doit etre la premiere rentrée : pc1, et la deuxième, pc2.</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    ASSERT_TRUE(st==<span class="stringliteral">&quot;pc1&quot;</span>);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    fp2.defilePiece(st,in);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    ASSERT_TRUE(st==<span class="stringliteral">&quot;pc2&quot;</span>);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html">TP1::FilePieces</a></div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8h_source.html#l00021">FilePieces.h:21</a></div></div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html_aa8feb7b1ce9d120e62bab1325b8d1e04"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html#aa8feb7b1ce9d120e62bab1325b8d1e04">TP1::FilePieces::enfilePiece</a></div><div class="ttdeci">void enfilePiece(const std::string &amp;nomPiece, int distanceDuDebut)</div><div class="ttdoc">ajoute une pièce à la fin d&#39;une file de pièces </div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8cpp_source.html#l00054">FilePieces.cpp:54</a></div></div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html_a349de724ce0225414c7048bf468b5cb3"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html#a349de724ce0225414c7048bf468b5cb3">TP1::FilePieces::~FilePieces</a></div><div class="ttdeci">virtual ~FilePieces()</div><div class="ttdoc">destructeur </div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8cpp_source.html#l00024">FilePieces.cpp:24</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_file_pieces_8cpp_af52d5bd12b0c7ff420e8be4032d2f561_cgraph.png" border="0" usemap="#_testeur_file_pieces_8cpp_af52d5bd12b0c7ff420e8be4032d2f561_cgraph" alt=""/></div>
<map name="_testeur_file_pieces_8cpp_af52d5bd12b0c7ff420e8be4032d2f561_cgraph" id="_testeur_file_pieces_8cpp_af52d5bd12b0c7ff420e8be4032d2f561_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="acc3c7cdc72f413d8fa5f1398181354ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_file_pieces.html">FilePieces</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">OperateurAssignation_CopieValide&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test: Operateur assignation =. </p>
<p>Cas valide: Copie profonde faite</p>
<p>Cas invalide: </p>

<p>Définition à la ligne <a class="el" href="_testeur_file_pieces_8cpp_source.html#l00058">58</a> du fichier <a class="el" href="_testeur_file_pieces_8cpp_source.html">TesteurFilePieces.cpp</a>.</p>

<p>Références <a class="el" href="_file_pieces_8cpp_source.html#l00065">TP1::FilePieces::defilePiece()</a>, <a class="el" href="_file_pieces_8cpp_source.html#l00054">TP1::FilePieces::enfilePiece()</a>, <a class="el" href="_file_pieces_8cpp_source.html#l00087">TP1::FilePieces::estVideFile()</a>, et <a class="el" href="_file_pieces_8cpp_source.html#l00024">TP1::FilePieces::~FilePieces()</a>.</p>
<div class="fragment"><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;{</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="class_t_p1_1_1_file_pieces.html">FilePieces</a> fp;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    fp.<a class="code" href="class_t_p1_1_1_file_pieces.html#aa8feb7b1ce9d120e62bab1325b8d1e04">enfilePiece</a>(<span class="stringliteral">&quot;pc1&quot;</span>,1);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    fp.<a class="code" href="class_t_p1_1_1_file_pieces.html#aa8feb7b1ce9d120e62bab1325b8d1e04">enfilePiece</a>(<span class="stringliteral">&quot;pc2&quot;</span>,2);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <a class="code" href="class_t_p1_1_1_file_pieces.html">FilePieces</a> fp2 = fp;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    fp.<a class="code" href="class_t_p1_1_1_file_pieces.html#a349de724ce0225414c7048bf468b5cb3">~FilePieces</a>();</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="comment">//suite à la destruction de fp, fp2 ne doit pas être vide (copie profonde)</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    ASSERT_FALSE(fp2.<a class="code" href="class_t_p1_1_1_file_pieces.html#a28ec1fa0edf8ef1c110a9678126615af">estVideFile</a>());</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="comment">//et les pieces défilés doivent être pc2 et pc1</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordtype">string</span> st;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordtype">int</span> in;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    fp2.<a class="code" href="class_t_p1_1_1_file_pieces.html#afe8a43d49f3e518d438891d3c15809c7">defilePiece</a>(st,in);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="comment">//la premiere piece retirée doit etre la premiere rentrée : pc1, et la deuxième, pc2.</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    ASSERT_TRUE(st==<span class="stringliteral">&quot;pc1&quot;</span>);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    fp2.<a class="code" href="class_t_p1_1_1_file_pieces.html#afe8a43d49f3e518d438891d3c15809c7">defilePiece</a>(st,in);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    ASSERT_TRUE(st==<span class="stringliteral">&quot;pc2&quot;</span>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html">TP1::FilePieces</a></div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8h_source.html#l00021">FilePieces.h:21</a></div></div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html_afe8a43d49f3e518d438891d3c15809c7"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html#afe8a43d49f3e518d438891d3c15809c7">TP1::FilePieces::defilePiece</a></div><div class="ttdeci">void defilePiece(std::string &amp;nomPieceRetiree, int &amp;distanceDuDebut)</div><div class="ttdoc">Retire une pièce du début d&#39;une file. </div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8cpp_source.html#l00065">FilePieces.cpp:65</a></div></div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html_aa8feb7b1ce9d120e62bab1325b8d1e04"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html#aa8feb7b1ce9d120e62bab1325b8d1e04">TP1::FilePieces::enfilePiece</a></div><div class="ttdeci">void enfilePiece(const std::string &amp;nomPiece, int distanceDuDebut)</div><div class="ttdoc">ajoute une pièce à la fin d&#39;une file de pièces </div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8cpp_source.html#l00054">FilePieces.cpp:54</a></div></div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html_a28ec1fa0edf8ef1c110a9678126615af"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html#a28ec1fa0edf8ef1c110a9678126615af">TP1::FilePieces::estVideFile</a></div><div class="ttdeci">bool estVideFile() const </div><div class="ttdoc">vérifie si la file est vide </div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8cpp_source.html#l00087">FilePieces.cpp:87</a></div></div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html_a349de724ce0225414c7048bf468b5cb3"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html#a349de724ce0225414c7048bf468b5cb3">TP1::FilePieces::~FilePieces</a></div><div class="ttdeci">virtual ~FilePieces()</div><div class="ttdoc">destructeur </div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8cpp_source.html#l00024">FilePieces.cpp:24</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_file_pieces_8cpp_acc3c7cdc72f413d8fa5f1398181354ae_cgraph.png" border="0" usemap="#_testeur_file_pieces_8cpp_acc3c7cdc72f413d8fa5f1398181354ae_cgraph" alt=""/></div>
<map name="_testeur_file_pieces_8cpp_acc3c7cdc72f413d8fa5f1398181354ae_cgraph" id="_testeur_file_pieces_8cpp_acc3c7cdc72f413d8fa5f1398181354ae_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a1ad9d2442769de75578a9c2181f6cfe5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_file_pieces.html">FilePieces</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">defilePiece_ErreurSiVide&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test: defilePiece() </p>
<p>Cas valide:</p>
<p>Cas invalide: Tentative de defiler un élément d'une file vide </p>

<p>Définition à la ligne <a class="el" href="_testeur_file_pieces_8cpp_source.html#l00085">85</a> du fichier <a class="el" href="_testeur_file_pieces_8cpp_source.html">TesteurFilePieces.cpp</a>.</p>

<p>Références <a class="el" href="_file_pieces_8cpp_source.html#l00065">TP1::FilePieces::defilePiece()</a>.</p>
<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;{</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="class_t_p1_1_1_file_pieces.html">FilePieces</a> fp;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordtype">string</span> st;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordtype">int</span> in;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    ASSERT_THROW(fp.<a class="code" href="class_t_p1_1_1_file_pieces.html#afe8a43d49f3e518d438891d3c15809c7">defilePiece</a>(st,in), logic_error);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html">TP1::FilePieces</a></div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8h_source.html#l00021">FilePieces.h:21</a></div></div>
<div class="ttc" id="class_t_p1_1_1_file_pieces_html_afe8a43d49f3e518d438891d3c15809c7"><div class="ttname"><a href="class_t_p1_1_1_file_pieces.html#afe8a43d49f3e518d438891d3c15809c7">TP1::FilePieces::defilePiece</a></div><div class="ttdeci">void defilePiece(std::string &amp;nomPieceRetiree, int &amp;distanceDuDebut)</div><div class="ttdoc">Retire une pièce du début d&#39;une file. </div><div class="ttdef"><b>Definition:</b> <a href="_file_pieces_8cpp_source.html#l00065">FilePieces.cpp:65</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_file_pieces_8cpp_a1ad9d2442769de75578a9c2181f6cfe5_cgraph.png" border="0" usemap="#_testeur_file_pieces_8cpp_a1ad9d2442769de75578a9c2181f6cfe5_cgraph" alt=""/></div>
<map name="_testeur_file_pieces_8cpp_a1ad9d2442769de75578a9c2181f6cfe5_cgraph" id="_testeur_file_pieces_8cpp_a1ad9d2442769de75578a9c2181f6cfe5_cgraph">
</map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_testeur_file_pieces_8cpp.html">TesteurFilePieces.cpp</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:05 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
